# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Author: CSSlayer <wengxt@gmail.com>
# Contributor: Yangtse <yangtsesu@gmail.com>

pkgname=libgooglepinyin
pkgver=0.1.2
pkgrel=5
pkgdesc="A fork from google pinyin on android"
arch=('loong64' 'x86_64')
url="https://code.google.com/archive/p/libgooglepinyin/"
license=('APACHE')
depends=('gcc-libs')
makedepends=('cmake')
source=(https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/libgooglepinyin/${pkgname}-${pkgver}.tar.bz2)

build() {
  rm -rf build
  mkdir build
  cd build

  cmake -DCMAKE_INSTALL_PREFIX=/usr . \
      -DENABLE_STATIC=Off ../$pkgname-$pkgver
}

package() {
  cd build
  make DESTDIR="${pkgdir}" install
}

sha512sums=('5ead9008cf1b5fe86bb49f2e5caa7c9868b69033316863ac61c5799d860f5d55ccb65560f6f28254ae930afe12cc7df786668b09caa4e39b2752c0aa5f8a101d')
